package com.lagou.rpc.core.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.List;

@ConfigurationProperties("rpc-link")
@Configuration
public class RpcConfig {


    private int nettyPort;

    private String zookeeperUrl;

    private List<Provider> register;

    private List<Subscribe> subscribes;


    public String getZookeeperUrl() {
        return zookeeperUrl;
    }

    public void setZookeeperUrl(String zookeeperUrl) {
        this.zookeeperUrl = zookeeperUrl;
    }

    public List<Provider> getRegister() {
        return register;
    }

    public void setRegister(List<Provider> register) {
        this.register = register;
    }

    public List<Subscribe> getSubscribes() {
        return subscribes;
    }

    public void setSubscribes(List<Subscribe> subscribes) {
        this.subscribes = subscribes;
    }

    public int getNettyPort() {
        return nettyPort;
    }

    public void setNettyPort(int nettyPort) {
        this.nettyPort = nettyPort;
    }
}
